home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 3684 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.2 KB  |  35 lines

  1. Path: news.iastate.edu!john
  2. From: john@iastate.edu (John Hascall)
  3. Newsgroups: comp.lang.c,comp.unix.osf.misc,comp.unix.osf.osf1,comp.unix.ultrix
  4. Subject: Re: File descriptor equivalent of fflush?
  5. Followup-To: comp.unix.osf.osf1,comp.unix.ultrix
  6. Date: 30 Jan 1996 17:33:01 GMT
  7. Organization: Iowa State University, Ames, Iowa USA
  8. Message-ID: <4elkod$d4j@news.iastate.edu>
  9. References: <DLxHsx.7Ko@un.seqeb.gov.au> <4eit6j$q4p@sparcserver.lrz-muenchen.de>
  10. NNTP-Posting-Host: pooh.cc.iastate.edu
  11.  
  12.  <ua302aa@lrz-muenchen.de> wrote:
  13. }al012@svtstu.seqeb.gov.au (Anthony Lee) writes:
  14. }>I am trying to find an equivalent of fflush for file descriptors
  15. }>in ULTRIX and OSF.  
  16. }
  17. }flushing buffers in not very meaningful for unbuffered i/o. If "low 
  18. }level" i/o is buffered in ULTIRX or "OSF", try to find an answer
  19. }in a system specific group.
  20.  
  21.     That's not a great answer...
  22.      + flushing buffers is meaningful for unbuffered i/o.
  23.      + it isn't specific to Ultrix or OSF
  24.  
  25.     The answer is:
  26.  
  27.        status = fsync(fd);
  28.  
  29. John
  30. -- 
  31. John Hascall                ``An ill-chosen word is the fool's messenger.''
  32. Moderator, comp.unix.wizards
  33. Systems Software Engineer, ISU Comp Center + Ames, IA  50011 + 515/294-9551
  34. <a href="http://www.cc.iastate.edu/staff/systems/john/">My Homepage</a>
  35.